package com.hlf.modules.api.quartz;

import com.hlf.modules.merchant.goods.service.GoodsService;
import com.hlf.modules.merchant.store.service.StoreService;
import com.hlf.modules.merchant.store.service.XdLInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/11/5.
 */
@Component
public class GoodsQuartz {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private GoodsService goodsService;
    @Autowired
    private StoreService storeService;
    @Autowired
    private XdLInfoService xdLInfoService;

    /**
     * 每天更新库存
     */
    public void freshenStock() {
        logger.debug("------------------------->执行每日库存定时任务!");
        goodsService.freshenStock();
    }

}
